<?php

$mcrp = './../';
include_once($mcrp . 'functions/session.php');
include_once($mcrp . 'functions/nanofight.php');

if(isset($_GET['last']))
{
	if(isset($_SESSION['lastprgm'])) echo $_SESSION['lastprgm'];
	else echo 'Aucun programme compilé';
}
else if(isset($_GET['exec']))
{
	if(!isset($_SESSION['execinfos'])) echo 'Erreur';
	else NanoExecFightC($_SESSION['execinfos']);
}

?>